#!/bin/bash

# test for happy path , or the most "standard" way to use higine
# parameters:
# 1:the name of the to-run server-side program
# 2:the process taken to run mpiexec
# (implicit)3:a script called _contains_<program name>_output
# The last param exists because to know a MPI program's exact output is impossible

_start_server | _contains_$1_output $2 | _at server &
_prepare_program $1 ; execute_program $1 $2 | _contains_$1_output $2 | _at client 
_kill_server
_collect server client
